import uvicorn
from plugins.common import app, settings, success_print
from routers import router

app.include_router(router) #加载路由

if __name__ == "__main__":
    success_print("启动http服务")
    uvicorn.run(app, host="0.0.0.0", port=settings.http.port,
                log_level='error', loop="asyncio")